<?php

namespace app\merchant\controller\data\sharp;

use app\merchant\controller\Base;
use app\merchant\model\sharp\Goods as GoodsModel;

/**
 * 秒杀商品数据控制器
 * Class Goods
 * @package app\store\controller\data\sharp
 */
class Goods extends Base
{

    /**
     * 商品列表
     * @param string $search
     * @return mixed
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public function lists()
    {
        $param = $this->postData();
        $model = new GoodsModel;
        $list = $model->getList($param);

        return $this->renderSuccess($list, "查询成功");
    }

}
